package com.xm.po;

/**
 * @author xie'lin'feng
 * @date 2020-08-06-14:35
 * @description 购物车实体类
 */
public class Cart{
	//属性
	private Integer cartId;
	//用户编号
	private Integer userId;
	//是否选中
	private Integer isCheck;
	//商品编号
	private Integer goodsId;
	//商品数量
	private Integer goodsCnt;
	//构造器
	public Cart(){}
	public Cart(Integer userId){
		this.userId = userId;
	}
	public Cart(Integer goodsId,Integer userId){
		this.goodsId = goodsId;
		this.userId = userId;
	}

	public Cart(Integer cartId,Integer userId,Integer isCheck,Integer goodsId,int goodsCnt){
		this.cartId=cartId;
		this.userId=userId;
		this.isCheck=isCheck;
		this.goodsId = goodsId;
		this.goodsCnt=goodsCnt;
}
	//getter setter方法
	public void setCartId(Integer cartId){
		this.cartId=cartId;
	}
	public Integer getCartId(){
		return cartId;
	}
	public void setUserId(Integer userId){
		this.userId=userId;
	}
	public Integer getUserId(){
		return userId;
	}
	public void setIsCheck(Integer isCheck){
		this.isCheck=isCheck;
	}
	public Integer getIsCheck(){
		return isCheck;
	}
	public void setGoodsId(Integer goodsId){
		this.goodsId=goodsId;
	}
	public Integer getGoodsId(){
		return goodsId;
	}
	public void setGoodsCnt(Integer goodsCnt){
		this.goodsCnt=goodsCnt;
	}
	public Integer getGoodsCnt(){
		return goodsCnt;
	}
	public String toString(){
		return "Cart [cartId=" + cartId + ", userId=" + userId + ", isCheck=" + isCheck + ", goodsId=" + goodsId + ", goodsCnt=" + goodsCnt + "]";
	}
}

